package com.awangyh.jdk8.lambda;

import java.util.Comparator;

/**
 * Created by admin on 2017/3/21.
 */
public class WorkDemo {

    public static void main(String[] args) {
//        Thread t = new Thread(() ->{
//            for ( int i = 0; i < 100; i ++) {
//                System.out.println("Working now......");
//            }
//        });


        Thread t = new Thread(() -> System.out.println("Working now......"));
        t.start();

        System.out.println(Integer.compare(105, 100));

        Comparator<String> comp = (s, y) -> Integer.compare(s.length(), y.length());
        System.out.println(comp.compare("aaasssa", "bbbbb"));
    }
}
